﻿using System;
using System.Collections.Generic;
using System.Text;

namespace hoemwork
{
    public static class MyExtensio
    {
        public static bool MyAny<T>(this IList<T> source, Func<T,bool> predicate)
        {
            foreach (T item in source)
            {
                if (predicate(item))
                {
                    return true;
                }
            }
            return false;
        }
    }
}
